const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api1': {
        target: 'http://127.0.0.1:8000',
        timeout: 360000,
        // 允许跨域
        changeOrigin: true,
        ws: true,
        secure: false,
        pathRewrite: {
          '^/api1': ''
        },
      },
      '/api2': {
        target: 'http://192.168.2.28:38088',
        timeout: 360000,
        // 允许跨域
        changeOrigin: true,
        ws: true,
        secure: false,
        pathRewrite: {
          '^/api2': ''
        },
      },
    }
  }
})
